package com.homework;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/27 19:16
 * @description
 */
public class T6 {
    public static void main(String[] args) {
        String s="name=zhangsan age=18 classNo=090728";
        int index1 = s.indexOf("=");
        int index2 = s.indexOf(" ");
        String name = s.substring(index1+1, index2);
        System.out.print(name+" ");
        String s2 = s.substring(index2 + 1);

        int index3 = s2.indexOf("=");
        int index4 = s2.indexOf(" ");
        String age = s2.substring(index3+1, index4);
        System.out.print(age+" ");
        String s3 = s2.substring(index4 + 1);

        int index5 = s3.indexOf("=");
        int index6 = s3.indexOf(" ");
        String classNO = s3.substring(index5 + 1);
        System.out.print(classNO);
    }
}
